import logging

from pyamf.remoting.client import RemotingService 

"""
from models import Item
from amfast.class_def.code_generator import CodeGenerator  
from amfast.class_def import ClassDefMapper
from amfast.class_def import ClassDef
 

coder = CodeGenerator()
mapper = ClassDefMapper()
mapper.mapClass(ClassDef(Item, _built_in=False))
coder.generateFilesFromMapper(mapper, use_accessors=True,
    packaged=True, constructor=True, bindable=True, extends='Parent')
"""



path = 'http://localhost:8080'
gw = RemotingService(path, logger=logging)
service = gw.getService('itemServer')

print service.getItens()
